package org.streets.database.handler;

import org.streets.database.RecordHandler;

public  abstract class AbstractRecordHandler<T> implements RecordHandler<T> {
	
	private int nest_limit = 1;
	
	private int nest_count = 0;
	
	public int getNestLimit() {
		return nest_limit;
	}
	
	public void setNestLimit(int limit) {
		this.nest_limit = limit;
	}
	
	public int getNestCount() {
		return nest_count;
	}
	
	public void setNestCount(int count) {
		nest_count = count;
	}
	
	public void inc() {
		nest_count++;
	}
	
	public void dec() {
		nest_count--;
	}
	
	public void reset() {
		nest_count = 1;
	}
}
